﻿package mortal.game.net.command.promotCard
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Public.*;
    import com.gengine.debug.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class PromotCardCommand extends BroadCastCall
    {

        public function PromotCardCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:SPromotCardMsg = null;
            Log.debug("I have receive PromotCardCommand");
            super.call(param1);
            switch(param1.messageHead.command)
            {
                case EPublicCommand._ECmdPublicPromotCardBack:
                {
                    _loc_2 = param1.messageBase as SPromotCardMsg;
                    NetDispatcher.dispatchCmd(ServerCommand.ActivationTakeBackInfo, _loc_2.result);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
